<template>
  <el-dialog
    v-bind="$attrs"
    v-on="$listeners"
  >
    <dialog-self :title="title">
      <div class="dialog-box">
        <slot />
      </div>
    </dialog-self>
  </el-dialog>
</template>

<script>
export default {
  name: 'FormDialog',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.dialog-box {
  padding: 20px 30px 20px;
}
</style>
